import { request } from "@/api";
import { RequestConfig } from "@/api/model";

export function getLocale(lang: string, options?: RequestConfig) {
  return request<any>({
    url: "/api/locale",
    method: "get",
    params: {
      lang,
    },
    ...options,
  });
}
